#include <stdio.h>

int main(void)
{
	char ch;
	int i, n = 0;

	printf("Input 10 characters: ");
	for (i = 1; i <= 10; i++)
	{
		scanf("%c", &ch);
		if (ch >= '0' && ch <= '9')
			n++;
	}
	printf("n = %d\n", n);

	return 0;
}